//
//  MRJBorderButton.m
//  MRDClient
//
//  Created by laomi on 2019/3/11.
//  Copyright © 2019年 laomi. All rights reserved.
//

#import "MRJBorderButton.h"

@implementation MRJBorderButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    UIColor *color = [UIColor colorWithRed:23/255.0 green:230/255.0 blue:195/255.0 alpha:1];
    self.layer.borderColor = color.CGColor;
    self.layer.borderWidth = 1;
    self.layer.cornerRadius = 14;
    self.titleLabel.font = [UIFont systemFontOfSize:14];
    [self setTitleColor:color forState:UIControlStateNormal];
    self.clipsToBounds = YES;
    self.contentEdgeInsets = UIEdgeInsetsMake(7,13, 7, 13);
//    self.titleEdgeInsets =
}

@end
